Class DlgSheet extends Dlg
var doBack;
var body;
function DlgSheet(title,items,doBack){
	if(!items) items=["知道了"];
 	this.doBack=doBack;
 	var titleH=(title!="")?150:20;
 	var bodyH=items.length*110+titleH;
 	this.addChild([
 		[{dim:"body",pos:[0,G.h,"f",bodyH],bg:"#fff"},
 			{doif:(title!=null||title!="")},
 			[{x:60,w:"f-120",h:titleH},
				[[title,"#666"],{pos:["c","c"],align:"c",multi:true}]
 			]
 		]
 	]);
 	for(var i=0;i<items.length;i++){
 		var text=items[i];
 		var y=titleH+i*110;
 		var bg=i>0&&i==items.length-1?["#aaa","#888",5]:["#B28147","#9B6F3B",5];
 		this.body.addChild([
 			[new Button([text,"#fff"]),{id:i,pos:[20,y,"f-40",80],bg:bg}]
 		]);
 	}
 	this.body.transit({y:G.h-bodyH,ease:1});
}
function onClose(){
	this.body.transit({y:G.h,ease:2},[this,this.remove]);
}
function onButtonClick(){
	this.close();
	call(this.doBack,G.target.id);
}
